package com.k12.admim.controller;
import cn.dev33.satoken.annotation.SaIgnore;
import com.k12.admim.constant.UserTypeConstant;
import com.k12.common.model.resp.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 配置类控制器
 */
@RestController
public class ConfigController {
    @Value("${aliyun.oss.endpoint}")
    private String endpoint;

    @GetMapping("user/type")
    @SaIgnore
    public R<Map<String, String>> getUserType() {
        System.out.println(endpoint);
        return R.success(UserTypeConstant.USER_TYPE_MAP);
    }
}
